#define  _CRT_SECURE_NO_WARNING
#include"SqList.h"



int main()
{
	SqList L;
	L.data[0] = 1;
	L.data[1] = 2;
	L.data[2] = 3;
	L.length = 3;


	PrintList(L);

	bool ret = SqlistInsert(L, 2, 60);
	if (ret)
	{
		printf("Insert success\n");
		PrintList(L);
	}
	else
	{
		printf("Insert element failed\n");

	}
	printf("-----------------------------------\n");

	Elementtype del;
	bool ret1 = SqlistDelet(L, 2, del);
	if (ret1)
	{
		printf("delet success\n");
		printf("the deleted element is %d:\n", del);
		PrintList(L);
	}
	else
	{
		printf("delet element failed\n");

	}
	printf("-----------------------------------\n");

	int pos = FindList(L, 2);
	if (pos)
	{
		printf("find success pos %d\n", pos);
		PrintList(L);
	}
	else
	{
		printf("find failed\n");
	}
	printf("-----------------------------------\n");


	return 0;
}